package com.project.study.farming.base.entity.po;

import com.project.study.farming.common.anno.Id;
import com.project.study.farming.common.anno.Table;
import com.project.study.farming.common.utils.CommonUtil;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 植物种类信息
 * @since 2020-04-26
 */
@Data
@Table("tm_crop_type")
public class CropTypePo {

    @Id
    private Integer typeId;

    private String name;

    private String image;

    private String createTime;

    private String createBy;

    private Integer isDelete;

    private LocalDateTime updateTime;

    private String updateBy;

    public void setCreateTime(LocalDateTime createTime){
        this.createTime = CommonUtil.formatLocalDateTime(createTime);
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }
}
